package commons.base.excel.example;

import java.util.HashMap;
import java.util.Map;

import commons.base.excel.ExcelManager;

public class ExcelExample {

	public static void main(String[] args) throws Throwable {
		t1();
	}
	
	public static void t1()throws Throwable{
//		List<ExcelTestModel> models = ExcelManager.get(ExcelTestModel.class);
		long start = System.currentTimeMillis();
		ExcelModelTemplate template = ExcelManager.get(ExcelModelTemplate.class);
		long end = System.currentTimeMillis();
		
		System.err.println(end - start);
		
//		for(ExcelModelTemplate.ExcelModel m : template.getItems()){
//			System.err.println(m.getId() + "," + m.getDesc() + ","+m.getOtherid()+","+m.getWords()+","+m.getHero());
//			System.err.println("==" + m.getData().getA() + "," + m.getData().getB());
//			System.err.println("==" + m.getResources());
//		}
	}
	
	public static void t2()throws Throwable{
		Map<Class<? extends Number>, Number> map = new HashMap<>();
		map.put(Integer.class, new Integer(1));
	}

}
